Don't autoload functions too eagerly during macroexpansion.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Jun 2012 02:26:47 +0000 (22:26 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 9 Jun 2012 02:26:47 +0000 (22:26 -0400)
commitbb4f808d6c9a3e81be2de377003e802e685a07c4
treeca5ffaa08817f97b0d95588f35d54203adbea931
parent7d24397bf27442a579a5229928cfb4027bbbd08b
Don't autoload functions too eagerly during macroexpansion.
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Only autoload
a function if there's a clear indication that it has a compiler-macro.
* lisp/emacs-lisp/byte-run.el (defun-declarations-alist, defmacro, defun)
(macro-declarations-alist): Add arglist to declaration functions.
(defun-declarations-alist): Add `obsolete' and `compiler-macro'.
* lisp/emacs-lisp/cl-seq.el (cl-member, cl-assoc):
* lisp/emacs-lisp/cl-lib.el (cl-list*, cl-adjoin):
* lisp/emacs-lisp/cl-extra.el (cl-get): Use the new `declare' statement.
Also add autoload to find the compiler macro.
* lisp/emacs-lisp/cl-macs.el (eql) [compiler-macro]: Remove.
(cl--compiler-macro-member, cl--compiler-macro-assoc)
(cl--compiler-macro-adjoin, cl--compiler-macro-list*)
(cl--compiler-macro-get): New functions, replacing calls to
cl-define-compiler-macro.
(cl-typep) [compiler-macro]: Use macroexp-let².
lisp/ChangeLog
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/cl-extra.el
lisp/emacs-lisp/cl-lib.el
lisp/emacs-lisp/cl-loaddefs.el
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-seq.el
lisp/emacs-lisp/macroexp.el